package framework
{
	import mx.rpc.AsyncToken;
	import mx.rpc.http.mxml.HTTPService;
	
	
	public function load(url:String, host:Object = null, property:String = null, resultFormat:String = "e4x", parameters:Object = null, transform:Function = null, faultHandler:Function = null):AsyncToken
	{
		var httpService:HTTPService = this._load_httpService;
		if (!httpService)
		{
			httpService = new HTTPService;
			httpService.useProxy = false;
			this._load_httpService = httpService;
		}
		httpService.resultFormat = resultFormat;
		httpService.url = url;
		
		return handleData(httpService.send(parameters),host,property, transform, faultHandler);  		
	}
}